# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-poe-component-client-http
pkgver=0.949
pkgrel=8
pkgdesc="Perl/CPAN Module POE::Component::Client::HTTP : nonblockingparallel web requests engine"
arch=(any)
url="https://search.cpan.org/dist/POE-Component-Client-HTTP"
license=("GPL" "PerlArtistic")
makedepends=("perl-uri" "perl-poe-component-client-keepalive"   "perl-poe" )
depends=("perl-uri" "perl-poe-component-client-keepalive"  "perl-poe" )
source=("https://www.cpan.org/authors/id/R/RC/RCAPUTO/POE-Component-Client-HTTP-$pkgver.tar.gz")
sha256sums=('339e86075dbb9e8583c45d4000f1f1256102f4865ae9ec25c90f9d15432b5a14')

build() {
  cd "$srcdir"/POE-Component-Client-HTTP-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/POE-Component-Client-HTTP-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
